<template>
  <div class="mainChild">
    <div class="caitner-box">
      <div>
        <el-button type="primary" size="small">新增菜单</el-button>
      </div>
      <div class="tableBox">
        <el-table
          :data="tableData"
          style="width: 100%; margin-bottom: 20px"
          row-key="id"
          default-expand-all
        >
          <el-table-column type="selection" width="55" />
          <el-table-column prop="date" label="菜单名称" sortable width="180" />
          <el-table-column prop="name" label="菜单类型" sortable width="180" />
          <el-table-column prop="name" label="图标" sortable width="180" />
          <el-table-column prop="name" label="图标" sortable width="180" />
        </el-table>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MENUMANAGEMENT',
  setup() {
    return {
      tableData: [
        {
          id: 1,
          date: '2016-05-02',
          name: 'wangxiaohu',
        },
        {
          id: 2,
          date: '2016-05-04',
          name: 'wangxiaohu',
        },
        {
          id: 3,
          date: '2016-05-01',
          name: 'wangxiaohu',
          children: [
            {
              id: 31,
              date: '2016-05-01',
              name: 'wangxiaohu',
            },
            {
              id: 32,
              date: '2016-05-01',
              name: 'wangxiaohu',
            },
          ],
        },
        {
          id: 4,
          date: '2016-05-03',
          name: 'wangxiaohu',
        },
      ],
    };
  },
  created() {
    console.log(this.$store.state.count);
  },
};
</script>

<style lang="scss" scoped>
@import './index.scss';
</style>
